package com.luoran.kaka.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.luoran.kaka.dao.ITestDao;
import com.luoran.kaka.entity.Test;
import com.luoran.kaka.service.ITestService;

@Service
public class TestServiceImpl implements ITestService{

	@Autowired
	private ITestDao testDao;
	
	@Override
	public List<Test> query() {
		return testDao.all();
	}

	@Override
	public String add(Test test) {
		testDao.insertTemplate(test);
		return test.getId();
	}

	@Override
	public List<Test> conditionQuery(String name) {
		
		return testDao.conditionQuery(name);
	}



}
